import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import menu from './modules/menu'
import userAuth from './modules/userAuth'
import dict from './modules/dict'
import tenant from './modules/tenant'
import authEntity from './modules/authEntity'
import role from './modules/role'
import domain from './modules/domain'
import moduleMessage from './modules/message'
import moduleSearchDetail from './modules/searchDetail'
import operLogger from './modules/operLogger'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    menu,
    userAuth,
    dict,
    tenant,
    authEntity,
    role,
    domain,
    m_msg: moduleMessage,
    m_searchDetail: moduleSearchDetail,
    operLogger
  },
  getters
})

export default store
